package doOperation;

import book.BookList;

import java.util.Scanner;

public class InsertBook implements Operation{
    @Override
    public void work(BookList bookList) {
        //判断满
        if(bookList.getUsedSize() == bookList.getBooks().length){
            System.out.println("书架已满");
            return;
        }
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入书名:");
        String name = scanner.nextLine();

    }
}
